﻿@model ZhongheCms.Models.HomeModel
@{
	
	Layout = "~/Views/Shared/_LayoutWebsite.cshtml";
	string jobstate = "";
	int w = 1;
	int w1 = 0;
	string myclass = "";
	string myadpic = "";
}
@section head
{
	<link href="/assets/sunjob/css/table.css" rel="stylesheet" />
	 <script src="/assets/js/jquery.SuperSlide.js"></script>
			<style type="text/css">
	
		
		.txtMarquee-top{ width:252px;  overflow:hidden; position:relative;    }
		

		</style>
}
<!--中间滚动图片部分-->
<div class="fullTab mb10">
	<ul class="fix wrapper">
		<li class="full4"><a href="#" style="background:url(/Assets/img/banner1.jpg) no-repeat center center"></a></li>
		<li class="full2"><a href="#" style="background:url(/Assets/img/banner2.jpg) no-repeat center center" target="_blank"></a></li>
		<li class="full3"><a href="#" style="background:url(/Assets/img/banner3.jpg) no-repeat center center" target="_blank"></a></li>
		<li class="full1"><a href="#" style="background:url(/Assets/img/banner4.jpg) no-repeat center center" target="_blank"></a></li>
	 
	</ul>
	<div class="btns">
		 <a href="#"  class="active first">•</a>
	  
		<a href="#" >•</a>
		<a href="#" >•</a>
		<a href="#" >•</a>

	</div>
</div>

<div class="index index_main_info mb15">
	<div class="main_tab">
		<ul class="tab_title">
			<li class="active">职位悬赏</li>
			<li>精品培训</li>
			<li>主题活动</li>
			@*  <li>人才推荐</li>*@
		</ul>
		<div class="tab_info_wrap">
			<!--职位悬赏-->
			<div class="fix active">
				<div class="next">&gt;</div>
				<div class="prev">&lt;</div>
				<ul class="tab_info">
					@foreach (var item in Model.HomeJobInfos.Where(x => x.ReFlag == 1).OrderBy(x => x.JobNo))
					{
						<li>
							<a href="/SunJob/JobDesc/@item.Id" target="_blank">
								<img src="@item.JobPic" alt="@item.JobTitle" style="width: 221px;height: 100px"></a>
						</li>
					}


				</ul>
			</div>
			<!--精品培训-->
			<div class="fix">
				<div class="next">&gt;</div>
				<div class="prev">&lt;</div>
				<ul class="tab_info">
					@foreach (var item in Model.HomeContents.Where(x => x.FunctionId == 82 && x.NewFlag == 1).OrderBy(x => x.Id))
					{
						<li>
							<a href="/SunJob/TrainDesc/@item.Id" target="_blank">
								<img src="@item.ContentThumb" alt="@item.ContentTitle" style="width: 221px;height: 100px"></a>
						</li>
					}


				</ul>
			</div>
			<!--主题活动-->
			<div class="fix">
				<div class="next">&gt;</div>
				<div class="prev">&lt;</div>
				<ul class="tab_info">
					@foreach (var item in Model.HomeContents.Where(x => x.FunctionId == 85 && x.NewFlag == 1).OrderBy(x => x.Id))
					{
						<li>
							<a href="/SunJob/ThemedEventsDesc/@item.Id" target="_blank">
								<img src="@item.ContentThumb" alt="@item.ContentTitle" style="width: 221px;height: 100px"></a>
						</li>
					}
				</ul>
			</div>
			<!--人才推荐-->



		</div>
	</div>
</div>
<!--兼职招聘模块-->

<div class="channel channel_1 fix">
	<div class="channel_title">
		<h2>
			<a target="_blank" href="/SunJob/JobList"><i class="gIcon title_ico"></i>阳光兼职</a>
			<a target="_blank" href="/SunJob/JobList" class="more fr">
				<img src="/assets/sunjob/img/zxzx1.jpg" alt="阳光兼职"></a>
		</h2>
	</div>
	<div class="info_wrapper fix">

		<div class="divtemplate ">


			<div id="content">

				<table>
					<thead>
						<tr>
							<th style="width:12%">招聘单位</th>
							<th style="width:12%">发布日期</th>
							

							<th style="width:12%">工作岗位</th>
							<th style="width:8%">性别</th>
							<th style="width:8%">面试</th>

							<th style="width:12%">工作日期</th>
							<th style="width:16%">薪资待遇</th>
							<th style="width:12%">已报/名额</th>
							<th style="width:8%">状态</th>
						</tr>
					</thead>
					<tbody>
						@foreach (var item in Model.JobInfos.Where(x => x.ReFlag != 1).OrderBy(x=>x.RegisterFlag).ThenBy(x=>x.JobNo))
						{
							jobstate = "报名中";
							if (item.JobState > 1)
							{
								jobstate = "已结束";
							}
							if (item.RegisterNum >= item.JobNum)
							{
								jobstate = "已结束";
							}
							<tr>
								<td><a href="/SunJob/JobDesc/@item.Id">@item.CusShortName</a></td>
								<td><a href="/SunJob/JobDesc/@item.Id">@item.PubDate.ToShortDateString()</a></td>
								
								@*<td><a href="/SunJob/JobDesc/@item.Id">@item.JobTypeName</a></td>*@
								<td><a href="/SunJob/JobDesc/@item.Id">@item.JobTitle</a></td>
								<td><a href="/SunJob/JobDesc/@item.Id">@item.GenderName</a></td>
								<td><a href="/SunJob/JobDesc/@item.Id">@item.JobInterview</a></td>
								<td><a href="/SunJob/JobDesc/@item.Id">@item.WorkDate</a></td>
								<td><a href="/SunJob/JobDesc/@item.Id">@item.Salary</a></td>
								<td><a href="/SunJob/JobDesc/@item.Id">@item.RegisterNum<span>/</span>@item.JobNum</a></td>

                                <td>
                                    @*<a href="/SunJob/JobDesc/@item.Id">@jobstate</a>*@
                                    @if (item.JobState > 1 || item.RegisterNum >= item.JobNum)
                                    {
                                        <span>已结束</span>
                                    }
                                    else
                                    {
                                        <a href="/SunJob/JobDesc/@item.Id"><img src="/assets/sunjob/images/baochean.jpg" width="77" height="22" align="absmiddle" border="0" /></a>
                                    }
                                </td>
							</tr>
						}



					</tbody>
				</table>

			</div>

		</div>
	</div>
</div>
<!--学员风采&公告通知-->
<div class="hot_train fix">
	<div class=" hot_train fix  channel_2">

		<div class="channel_title ">
			<h2>
				<a target="_blank" href="/Sunjob/MemberNews" style="color: #39b200"><i class="gIcon title_ico"></i>学员风采</a>
				<a target="_blank" href="/Sunjob/MemberNews" class="more fr">
					<img src="/assets/sunjob/img/zxzx2.jpg" alt="学员风采"></a>
			</h2>
		</div>
		<div class="info_wrapper fix">
			<div class="info_wrap fl">
				<ul class="train_list fix">
					@foreach (var item in Model.HomeContents.Where(x => x.FunctionId == 102).OrderByDescending(x => x.Id))
					{
						<li>
							<a href="/Sunjob/MemberNewsDesc/@item.Id" target="_blank">
								<img src="@item.ContentThumb" alt="@item.ContentTitle">
								<div class="info">
									<div class="mark"></div>
									<p class="title">@item.ContentTitle</p>
								</div>
							</a>
						</li>
					}




				</ul>
			</div>
			<div class="channel_rigtht fr" id="nlist">
				<div class="wrap txtMarquee-top" >
					<h3><a target="_blank" href="/Sunjob/Notice">公告通知</a></h3>
					<ul class="channel_list">
						@foreach (var item in Model.HomeContents.Where(x => x.FunctionId == 79).OrderByDescending(x => x.Id))
						{
							<li>
								<i>•</i>
								<a href="/Sunjob/NoticeDesc/@item.Id" target="_blank">@item.ContentTitle</a>
							</li>
						}
					   
					</ul>
				</div>
			</div>
		</div>
	</div>
	<!-- hot_train end-->
</div>
	<script type="text/javascript">
		jQuery("#nlist").slide({ mainCell: ".txtMarquee-top ul", autoPlay: true, effect: "topMarquee", vis: 8, interTime: 50 });
		</script>
<!--校园分享&贴吧最新主题-->
<div class="hot_train fix">
	<div class="hot_train fix  ">

		<div class="channel_title">
			<h2>
				<a target="_blank" href="/SunJob/SchoolShare"><i class="gIcon title_ico"></i>校园分享▪本周推荐</a>
				<a target="_blank" href="/SunJob/SchoolShare" class="more fr">
					<img src="/assets/sunjob/img/zxzx1.jpg" alt="校园分享▪本周推荐"></a>
			</h2>
		</div>
		<div class="info_wrapper fix">
			<div class="info_wrap fl">
				<ul class="train_list fix">
					@foreach (var item in Model.HomeContents.Where(x => x.FunctionId == 90).OrderByDescending(x=> x.Id))
					{
						<li>
							<a href="/SunJob/SchoolShareDesc/@item.Id" target="_blank">
								<img src="@item.ContentThumb" alt="@item.ContentTitle">
								<div class="info">
									<div class="mark"></div>
									<p class="title">@item.ContentTitle</p>
								</div>
							</a>
						</li>
					}


				</ul>
			</div>
			<div class="channel_rigtht fr">
				<div class="wrap">
					<h3><a target="_blank" href="/SunJob/Tieba">贴吧交友最新主题</a></h3>
					<ul class="channel_list">
						@foreach (var item in Model.Tiebas)
						{
							<li>
								<i>•</i>
								<a href="/SunJob/TiebaDesc/@item.Id" target="_blank">@item.Title</a>
							</li>
						}
					</ul>
				</div>
			</div>
		</div>
	</div>

</div>
<!--培训就业-->
<div class="channel channel_3 fix mb15">
	<div class="channel_title">
		<h2>
			<a target="_blank" href="/SunJob/Train"><i class="gIcon title_ico"></i>培训就业</a>
			<a target="_blank" href="/SunJob/Train" class="more fr">
				<img src="/assets/sunjob/img/zxzx2.jpg" alt="培训就业"></a>
		</h2>
	</div>
	<div class="info_wrapper fix">
		<div class="channel_left fl">
			<ul class="tab_btnList fix">
				@*    <li class="btn1"><a target="_blank" href="">此为广告位！</a></li>
					<li class="btn2"><a target="_blank" href="">此为广告位！</a></li>*@
			</ul>

		</div>

		<div class="channel_main fl">

			<div class="zgz_link_bar">
				<ul>
					@foreach (var item in Model.HomeContents.Where(x => x.FunctionId == 82 && x.ReFlag == 1).OrderByDescending(x => x.Id))
					{
						<li class="zgz_link_item">
							<a href="/SunJob/TrainDesc/@item.Id" target="_blank">
								<img src="@item.ContentThumb"></a>
						</li>
					}

				</ul>
			</div>
		</div>
		<div class="channel_rigtht fr">
			<div class="wrap">
				<h3><a href="/SunJob/Train/82" target="_blank">阳光培训</a></h3>
				<ul class="channel_list">
					@foreach (var item in Model.HomeContents.Where(x => x.FunctionId == 82 && x.NewFlag == 0 && x.ReFlag == 0).OrderByDescending(x => x.Id))
					{
						<li>
							<i>•</i>
							<a href="/SunJob/TrainDesc/@item.Id" target="_blank">@item.ContentTitle</a>
						</li>
					}
				</ul>
			</div>
			<div class="wrap">
				<h3><a href="/SunJob/Train/83">阳光就业</a></h3>
				<ul class="channel_list">
					@foreach (var item in Model.HomeContents.Where(x => x.FunctionId == 83).OrderByDescending(x => x.Id))
					{
						<li>
							<i>•</i>
							<a href="/SunJob/TrainDesc/@item.Id" target="_blank">@item.ContentTitle</a>
						</li>
					}
				</ul>
			</div>
		</div>
	</div>
</div>

<!--精彩一刻-->
<div class="hot_school fix mb15">
	<div class="channel_title">
		<h2>
			<a href="/SunJob/HappyTime"><i class="gIcon title_ico"></i>精彩一刻</a>
			<a href="/SunJob/HappyTime" class="more fr">
				<img src="/assets/sunjob/img/zxzx1.jpg" alt="精彩一刻"></a>
		</h2>
	</div>
	<div class="info_wrap">
		<ul class="train_list">
			@foreach (var item in Model.HomeContents.Where(x => x.FunctionId == 84 && x.NewFlag == 1).OrderByDescending(x => x.Id))
			{
				<li>
					<a href="/SunJob/HaypyTimeDesc/@item.Id" target="_blank">
						<img src="@item.ContentThumb" alt="@item.ContentTitle">
						<div class="info" style="top: 160px;">
							<div class="mark"></div>
							<p class="title">@item.ContentTitle</p>
						</div>
					</a>
				</li>
			}

		</ul>
	</div>
</div>

<div class="frendLinks mb15 gBor">
	<h3 class="gH3">友情链接</h3>
	<p>

		@foreach (var item in Model.HomeContents.Where(x => x.FunctionId == 103).OrderBy(x => x.Id))
		{
			<a href="@item.ContentBrief" target="_blank">@item.ContentTitle</a>
		}
	</p>
</div>
<div id="Fixed">
	<a id="goCart" target="_blank" class="btn fl" title="合作洽谈" href="http://wpa.qq.com/msgrd?v=3&amp;uin=1432317238&amp;site=qq&amp;menu=yes">合作洽谈</a>
	<a id="goChat" target="_blank" class="fl" title="在线客服" href="http://wpa.qq.com/msgrd?v=3&amp;uin=2270609151&amp;site=qq&amp;menu=yes">在线客服</a>
	<a id="feedback" target="_blank" class="fl btn" title="求反馈" href="http://wpa.qq.com/msgrd?v=3&amp;uin=965910760&amp;site=qq&amp;menu=yes">求反馈</a>
	<a id="goTop" class="fl" title="去顶部" href="javascript:;" style="display: inline;">去顶部</a>
</div>
